#pragma once

#include "mutex.h"

namespace contnav {
namespace thread {

class AutoLock
{
public:
    AutoLock(Mutex* mutex);
    ~AutoLock();

    void try_lock();

    void lock();

private:
    Mutex* m_mutex;
};

}}
